<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>{{ good.authName || "添加商品" }}</el-breadcrumb-item>
      <el-breadcrumb-item v-for="item in good.children" :key="item.id">
        {{ item.authName }}</el-breadcrumb-item
      >
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  props: {
    good: {
      type: Object,
    },
  },
  created() {
    // console.log(this.good);
    //
  },
};
</script>

<style>
.el-breadcrumb {
  margin-bottom: 15px;
}
</style>
